package com.jasonchoi.security.commons.security;

import lombok.extern.log4j.Log4j2;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.web.access.AccessDeniedHandler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: JasonChoi
 * @Date: 2020/1/7 10:08
 */
@Log4j2
public class PermissionDeniedHandler implements AccessDeniedHandler {
    @Override
    public void handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AccessDeniedException e){
        log.debug("######权限不足控制器######" + httpServletRequest.getRequestURI());
    }
}
